home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / cuj0593.zip / 1105082C < prev    next >
Text File  |  1993-03-01  |  447b  |  23 lines

  1. // fv1.cpp - a dynamic vector of float (with a possibly
  2. // non-zero low-bound) using a subscripting object
  3. // implemented by inheritance from float_array
  4.  
  5. #include "fv1.h"
  6. #include <assert.h>
  7.  
  8. float float_vector::operator[](int i) const
  9.     {
  10.     assert(i >= low());
  11.     return float_array::operator[](i - low());
  12.     }
  13.  
  14. fa_index float_vector::operator[](int i)
  15.     {
  16.     assert(i >= low());
  17.     return float_array::operator[](i - low());
  18.     }
  19.  
  20.  
  21.  
  22.  
  23.